//package com.info.zhiduoduo.weixin.controller;
//
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.repository.dto.marketingcooperative.*;
//import com.info.zhiduoduo.repository.entity.marketingcooperative.MarketingCooperativePartnerPoster;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.DealMarketingCooperativeRecordFormBean;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.GeneratePartnerPosterFormBean;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.MarketingCooperativeNoteFormBean;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.MarketingCooperativePartnerListFormBean;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.MarketingCooperativeRecordListFormBean;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.PartnerPosterFormFormBean;
//import com.info.zhiduoduo.weixin.formbean.marketingcooperative.VerifyMarketingCooperativeRecordFormBean;
//import com.info.zhiduoduo.weixin.formbean.partner.PartnerMarketingCooperativeRecordFormBean;
//import com.info.zhiduoduo.weixin.service.MarketingCooperativeService;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletResponse;
//import javax.validation.Valid;
//
//import io.swagger.annotations.ApiOperation;
//
//@RestController
//@RequestMapping("/marketingCooperative")
//public class MarketingCooperativeController {
//
//	@Autowired
//	MarketingCooperativeService marketingCooperativeService;
//
//	@ApiOperation("生成二维码")
//	@PostMapping("/qrcode")
//	public SmartResult<String> generateQrcode(@RequestBody BaseSimpleFormBean formBean) {
//		return marketingCooperativeService.generateQrcode(formBean);
//	}
//
//	@ApiOperation("获取所有绑定的合伙人列表")
//	@PostMapping("/listPartners")
//	public SmartResult<MarketingCooperativePartnerDto> listPartners(@RequestBody BaseSimpleFormBean<MarketingCooperativePartnerListFormBean> formBean) {
//		return marketingCooperativeService.listPartners(formBean);
//	}
//
//	@ApiOperation("获取企业所有的表单信息列表")
//	@PostMapping("/listCompanyRecords")
//	public SmartResult<MarketingCooperativeRecordDto> listCompanyRecords(@RequestBody BaseSimpleFormBean<MarketingCooperativeRecordListFormBean> formBean) {
//		return marketingCooperativeService.listCompanyRecords(formBean);
//	}
//
//	@ApiOperation("导出企业所有的表单信息列表")
//	@GetMapping("/exportRecords")
//	public void exportRecords(HttpServletResponse response, int compid, MarketingCooperativeRecordListFormBean reqdata) {
//		marketingCooperativeService.exportRecords(response, compid, reqdata);
//	}
//
//	@ApiOperation("获取合伙人所有的表单信息列表")
//	@PostMapping("/listPartnerRecords")
//	public SmartResult<MarketingCooperativeRecordDto> listPartnerRecords(@RequestBody BaseSimpleFormBean<MarketingCooperativeRecordListFormBean> formBean) {
//		return marketingCooperativeService.listPartnerRecords(formBean);
//	}
//
//	@ApiOperation("保存合销云表单企业备注")
//	@PostMapping("/saveCompanyNote")
//	public SmartResult saveCompanyNote(@RequestBody BaseSimpleFormBean<MarketingCooperativeNoteFormBean> formBean) {
//		return marketingCooperativeService.saveCompanyNote(formBean);
//	}
//
//	@ApiOperation("审核确认符合条件的合销云申请")
//	@PostMapping("/verifyRecord")
//	public SmartResult verifyRecord(@Valid @RequestBody BaseSimpleFormBean<VerifyMarketingCooperativeRecordFormBean> formBean) {
//		return marketingCooperativeService.verifyRecord(formBean);
//	}
//
//	@ApiOperation("结算合销云申请")
//	@PostMapping("/dealRecord")
//	public SmartResult dealRecord(@Valid @RequestBody BaseSimpleFormBean<DealMarketingCooperativeRecordFormBean> formBean) {
//		return marketingCooperativeService.dealRecord(formBean);
//	}
//
//	@ApiOperation("统计佣金")
//	@PostMapping("/countRecordBrokerage")
//	public SmartResult<MarketingCooperativeBrokerageDto> countRecordBrokerage(@RequestBody BaseSimpleFormBean formBean) {
//		return marketingCooperativeService.countRecordBrokerage(formBean);
//	}
//
//	@ApiOperation("企业获取合销云海报配置列表")
//	@PostMapping("listPosterConfigs")
//	public SmartResult<MarketingCooperativePosterConfigDto> listPosterConfigs(@RequestBody BaseSimpleFormBean formBean) {
//		return marketingCooperativeService.listPosterConfigs(formBean);
//	}
//
//	@ApiOperation("合伙人获取企业的合销云海报配置列表")
//	@PostMapping("listCompanyPosterConfigs")
//	public SmartResult<MarketingCooperativePosterConfigDto> listCompanyPosterConfigs(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return marketingCooperativeService.listCompanyPosterConfigs(formBean);
//	}
//
//	@ApiOperation("合伙人生成合销云海报及二维码")
//	@PostMapping("generatePartnerPoster")
//	public SmartResult<GeneratePartnerPosterDto> generatePartnerPoster(@RequestBody BaseSimpleFormBean<GeneratePartnerPosterFormBean> formBean) {
//		return marketingCooperativeService.generatePartnerPoster(formBean);
//	}
//
//	@ApiOperation("合伙人获取合销云海报及二维码列表")
//	@PostMapping("listPartnerPosters")
//	public SmartResult<MarketingCooperativePartnerPosterDto> listPartnerPosters(@RequestBody BaseSimpleFormBean formBean) {
//		return marketingCooperativeService.listPartnerPosters(formBean);
//	}
//
//	@ApiOperation("获取合伙人海报二维码扫码的表单页面配置")
//	@PostMapping("getPartnerPosterForm")
//	public SmartResult<MarketingCoorperativeCompanyFormDto> getPartnerPosterForm(@RequestBody BaseSimpleFormBean<PartnerPosterFormFormBean> formBean) {
//		return marketingCooperativeService.getPartnerPosterForm(formBean);
//	}
//
//	@ApiOperation("用户提交合伙人合销云申请表单")
//	@PostMapping("/savePartnerMarketingCooperativeRecordRecord")
//	public SmartResult savePartnerMarketingCooperativeRecord(@Valid @RequestBody BaseSimpleFormBean<PartnerMarketingCooperativeRecordFormBean> formBean) {
//		return marketingCooperativeService.savePartnerMarketingCooperativeRecord(formBean);
//	}
//	@ApiOperation("获取企业表单页面配置列表")
//	@PostMapping("/listPageForms")
//	public SmartResult listPageForms(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return marketingCooperativeService.listPageForms(formBean);
//	}
//	@ApiOperation("根据表单id获取表单页面配置")
//	@PostMapping("/listPageFormsId")
//	public SmartResult listPageFormsId(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return marketingCooperativeService.listPageFormsId(formBean);
//	}
//}
//
//
